Implemented new team dialog functionality