attach ports to label and legends