Remove form element from dialog