StyledText handler implemented for UI operations