Minor changes to textfield work