changing to use the new text component interface