added delete group func, but doesn't work yet