Checking if device is online before refreshing lists.