small update to legendPane