fixed a few bugs in NetworkDialog