update the template for webapp