Trying to solve mobile detection problems on ipad