checks for internet

gives error message on screen if no internet.