add broadcastreceiver to get the network change state and give a hint