better detection for mobile and tablet