moved isMobile test to new file