Add a legend control