Auto save the existing file
Add message to the user if they want to quit the page without saving