Update text and layout