loads template and passes entity to render