Leave team functionality added.