added pagination to the home page