remove useless dialogs