add pagination to the events index page