update text and styles