Add pagination to the events