Added better alert when user if offline