disabling the app when internet connection has lost