working event pagination