update code in html