update textFlow