updating style and text