remove the legend container