added legend at top of add relation form