added mobile detection capability