update styles and template