Refactoring ConnectionsDialog