fixed bugs in setting text field; removed obsolete setTextField function now that json api is in place, no need for filtering