added legend on ports tab