use xtemplate for component
use template in component