made edit-group and delete-group work recursively.