Editing team func almost done