warned user when leaving profile with unsaved changes.
fixes #183