refactoring index.html