update style and content