Add tree for groups and remove non working links.