updated add-device.php