updating the deviceDetector directive with the constants