fixed issues with editing notes.