Add in NotesController actions and fix bug