Slight refactoring of alert dialogs and added confirmation dialogs which
resolves #25