add event detection to TextAreaField