Adding the pagination on the index page