update style and contents