Extract the AddNoteView to it's own function