displays error message when no internet connection