added isMobile check to application controller