Update devices.php