fixes coding for entering new data into .text field