Solved a bug in page context switching between saved/unsaved changes