change mobile device checking to userAgent