adding event on text