on "setTemplate" reset current template before fetching the new one