update index.html from refreshing