Added confirmation for leaving page with unsaved changes