Saving updated note when changing page.