Added isMobile Function