Made html template standards compliant