Add functionality for editing teams