n+1 fix for notes index page