make the edit window prompt for saving