change and complete the device add/edit panel