added pagination to notifications