Add pagination to activities