added code for mobile redirect