Fixed machines and containers so that they can only be deleted once

When you click the delete icon on a machine or container in the machine view it should only register the first delete per machine/container.