update xtemplate history