Adding dialogs

Added confirm dialog for exit.
Added enable button.
minor changes from cleanup