change template modle code