controller logic for mobile detect