upgrade index.html from hw2