redirectToMobile script changed to view redirect