Now a device can be deleted from the modal