refactor of index.html