Proposal for #613

This appears to work from my testing, with some minor issues:
* Styling gets weird when all networks are closed. It goes back to normal once you connect again.
* The part (x) span does not seem to render correctly on server tabs.