better mobile data detection and wifi disconnected event