rollback unsaved changes when you transition away. fixes #187