changing user agent check for iPhone and iPad