Refactor NotesIndex view