rewrite the index.html