add alert for offline mode

test with android, doesn't work in Win7 emulator