Added cell deletion to the legend