update the model template file