fixing a bug where isMobile was always true