Fixing note edit and delete (refs #19048)

* removing the global flag from a note will now leave it as a local note
  on the current chart
* breaking note-related actions into separate functions