check internet connection before start update data in background