Add pagination and index page.