let the shared state handle the textfield's text

Calling setVisible(false) then setVisible(true) causes the widget to be
reinstantiated. Those calls essentially empty the textfield state if its
not stored in shared state.