added Text functionality for TextField