we should display a cancel dialog when users try to leave edit mode (via a browser action) with unpublished changes.
this might happen when:
- they reload/refresh the browser tab
- they close the browser tab/window
- they go back/forward with the browser history stack.