1. isWifi and is3g functions removed
2. Reused isOnline function for checking active network connection
3. sync will start only when network connectivity present