How to remove a widget from a form?