clean up modal dialogs