add internet connected state judgement