Added an api to update the tree view when a new group is created