Fixed a bug that prevented a page navigation confirmation box from appearing when editing a sheet and attempting to leave the page without saving, fixes #136.