implement leave team