apply pagination for index.html