moved html to template file using jinja2