update basic function

move isConntectingInternet to BasicFunctions class