Set up pagination for tasks