updated edit team functionality