Added warning if you leave with unsaved content