Add events on text box