added pagination to main page