added mobile device detection to application controller and mobile view to pages index