Add alerts when switching from offline/online