Clicking the back button cancels the edit