added pagination to activities