remove old legendPanel