add relation dialog