add paginate to index