Add handler function for updating textarea.