Prompts user for unsaved changes

Should prevent accidental closes and losing edits. Only prompts on main textarea input.