change index to paginated list