Removed isMobile2 method and resolved some ambiguities