Added pagination for events