Replace notes_for_class call in UI with notes.for_class