added support for handling textfield values