add relations diagram