made html templates more jinja friendly