updating callback for mobile detect