added some changes when internet connection is not available for showing the correct information