Check for any unsaved changes in page