Added filter for devices.php