Added internet access check for refresh button.