updating text and style sheet