update to generate html