update group detail logic