improved notesRepository injection