fix an issue w/ submitting when the dialog is invalid
review comments
more work on closing dialogs
merge to master; review comments
Merge pull request #2548 from devoncarew/devoncarew_dialog_button

fix an issue w/ submitting when the dialog is invalid