added pagination to home page