added support for modelhtml and model template