add paginate to the index page