edit events to paginate on event