refactored NotesIndex redirect