Update logic in edit note dialogs.
Add edit option in SearchNotePopupMenu.