removed a component from dialog box