Add pagination to main page