generalized ajax relationship set/unset