Change mobile detection with mobile views
Change the structure to separate the controllers and the services