regenerating the HTML