Check for internet access to call the api

otherwise shows the hardcoded data.