Enable/disable widgets when device is online/offline.