Fixed var reference.
Escaped the jinja var.
Reordered the views.