Include mdetect file only if mdetect is enabled
Integrate mobile view switch
Change viewDesktop to desktop