Changed model to TemplateStaticState.modelName

This PR is consistent with the last pulled merge which changed 'model' to TemplateStaticState.modelName.

The fixes the issue where upon changing the model the table doesn't trigger the resize event.