Correction to delete device dialogs on device.php