fix team editing and listing