Added warning when leaving page with unsaved work