solved:

made the handler session aware and changed the method for detecting if new text was added.