finalise the mobile detection