init mobile detection