When a `wifi` network is connected there are some styles that should be removed as well:
`
networkSelected.classList.remove('connected');
icon.classList.remove('connected');
`

(`icon` var is not in the current code, we should create it).
On the other hand, if we are connected to a previous Wifi, Should be to `disconnect` before `connect`? Because I have a weird behaviour in this scenario.