updating text and styles