Added internet connection check and message display to AppDelegate