moved main code from user show to group show