htmlGenerator fuction tweak.