tidied up modal dialogs
tidied up modal dialogs