Internet check

Internet check when refreshing implemented.