Added mobile user agent detection