edit index.html, implement pagination