use utility setTemplate