added mobile detection to main work file