fixed minor bug in open connect
replaced webapp.template with jinja2