refactor index.html