Cleanups.
Prompt before navigation if unsaved changes.