update style and cotents