fixed up modal dialogs