add pagination to events view