Added Detection of Network type and displaying current network type on change of network