update generation of html