rearrange and update text