Prevent page changes while you have unsaved edits.