Render and setTemplate in base component