Fixed move part from device to another device

Changed edit device view to correct move part behaviour.