hook a handler to text box