Fix model to HTML template issue

This includes an import fix and the model to HTML template.