added jinja2 to adjust hostname for connecting of websocket