Move controller methods inside NotesController