update templates and css