use a common function in editing connection and editing default connection