finish group details logic