cleaned up the dialogs