changed to Jinja2

added the template engine Jinja2 to the application