Update legend when vm gets deleted