added detection for mobile safari