Fix opening dialog when noc saved connections
Format code
Fix typo, clean