Improving iOS detection and spliting up based on device