added updateNote and addNote functionality