updating html code