fix pagination for upcoming and past contests