array vs vector: updating text and styles