improve write of html