Submitting data once internet connection is established again