renamed function newNote to NewNoteDialogue