show alert dialog when no connection

show alert dialog when no connection on change state