finish group list editing function