adpated API for view_group to include pending invites