complete rewrite of index.html