update text and style