Added pagination to the homepage.