update style and template