regenerate HTML