small progress on unsaved changes warning