change and complete the device add/edit panel, add socket edit