added check for mobile