join team functionality