added mobile detection to head