regenerating html