Added support for text fields in the UI generator.