Switch between clans

Hi, I just made a script for clan manager, and i want to switch between clans, And when i create a clan this happens

https://vimeo.com/383448260

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Clan : MonoBehaviour
{
    public GameObject ClanContainer;
    public GameObject ClanMembersContainer;
    public GameObject ClanDescriptionContainer;

    public GameObject ClanListPrefab;
    public GameObject ClanMembersPrefab;
    public GameObject ClanDescriptionPrefab;

    public InputField ClanName;
    public InputField ClanDescripiton;
    public GameObject ClanPanel;

    public GameObject OpenCreateClan;

    List<string> ClanList = new List<string>();
    List<string> ClanMembers = new List<string>();
    string[] Ranks = { "Founder", "Leader", "Member", "Trial" };
    void Start()
    {
        ClanList.Add("Admins");
        ClanMembers.Add("Ibrahim");
    }
    public void CreateClan()
    {
        if (ClanName.text == "Admins" || ClanName.text == "Staff")
        {
            Debug.Log("You can't Create clan with this name");
        }
        else if (ClanList.Contains(ClanName.text))
        {
            Debug.Log("Exist clan name");
        }
        else if (ClanName.text == "")
        {
            Debug.Log("Plese write clan name");
        }
        else
        {
            ClanList.Add(ClanName.text);
            GameObject Name = Instantiate(ClanListPrefab, ClanContainer.transform) as GameObject;
            Name.transform.Find("Clan").GetComponentInChildren<Text>().text = ClanName.text;
            Name.transform.Find("PlayersCount").GetComponentInChildren<Text>().text = ClanMembers.Count.ToString() + "/50";

            GameObject Descripition = Instantiate(ClanDescriptionPrefab, ClanDescriptionContainer.transform) as GameObject;
            Descripition.transform.Find("ClanName").GetComponentInChildren<Text>().text = ClanName.text;
            Descripition.transform.Find("ClanDescription").GetComponentInChildren<Text>().text = ClanDescripiton.text;

            GameObject ClanMember = Instantiate(ClanMembersPrefab, ClanMembersContainer.transform) as GameObject;
            ClanMember.transform.Find("NameTxt").GetComponentInChildren<Text>().text = "Ibrahim";
            ClanMember.transform.Find("RankTxt").GetComponentInChildren<Text>().text = Ranks[0];
            ClanPanel.SetActive(true);
            OpenCreateClan.SetActive(false);
        }
    }
}

Yes. So?

I’m guessing there is a question, probably because you were expecting something different? You need to tell us at least what you want to achieve, what you tried, what you think went wrong, and what you want to happen if everything went correctl.

@csofranz Hi,
Hello, I am working on the clan system for players, it allows any player to create a clan and join his friends in it, and there is also a system of ranks that I can promote or demote, and I can also kick players out of the clan but I will work on it later, So now i want the player can joins any clan he wants and he clan leave it any time