Added pagination to the activities page.