Update template in html file