refactored dialogs
added save option
added button error handling