add the paginate on the index page