fixing html ordering failure