online/offline detection added (including nagging Toasts)