clean up of the dialogs boxes