Implementing a popup menu to connect to the network selected