updated mobile detect script