Added Save Changes Prompt, Exit action

Some bugs.