fix textarea listener and emit data