Working on devices and add.php