Changed model to TemplateStaticState.modelName