added pagination to notes