update text layout