implementing ~DeviceEdit method