add click handler for diff output rows