Finished pagination for index.