internet check method changed

Changes:
method of checking internet connectivity changed
method now called in background worker