added internet connectivity check for the app