updating the html generated code