alert when trying to connect while offline