Updated ConnectDialog.java to the newest version