cleanup mobile detection