edit_device_ref