Fixed bug when adding network locations. Dialogs rework first commit (WIP)