dispatch event on text change