private void CallPage(object sender, MouseEventArgs e)
        {
            List <String> backUrl = new List <String>();

            backUrl.Add("");
            switch (ListElements.SelectedItem.GetType().ToString())
            {
            case "OpenFood_C_Sharp.Modele.People":
                b         = new Button();
                b.Content = " X ";
                People     p               = (People)ListElements.SelectedItem;
                PeoplePage peoplePage      = new PeoplePage(p.url, backUrl);
                Frame      peoplePageFrame = new Frame();
                peoplePageFrame.Content = peoplePage;
                tabItem   = new TabItem();
                stack     = new StackPanel();
                l         = new Label();
                l.Content = p.ToString();
                stack.Children.Add(l);
                stack.Children.Add(b);
                stack.Orientation = Orientation.Horizontal;
                tabItem.Header    = stack;
                tabItem.Content   = peoplePageFrame;
                mainTab.Items.Add(tabItem);
                b.Click += removePanel;
                b.Tag    = tabItem;
                mainTab.SelectedItem = tabItem;
                mainTab.Visibility   = Visibility.Visible;
                break;

            case "OpenFood_C_Sharp.Modele.Film":
                b         = new Button();
                b.Content = " X ";
                Film     f             = (Film)ListElements.SelectedItem;
                FilmPage filmPage      = new FilmPage(f.url, backUrl);
                Frame    filmPageFrame = new Frame();
                filmPageFrame.Content = filmPage;
                tabItem   = new TabItem();
                stack     = new StackPanel();
                l         = new Label();
                l.Content = f.ToString();
                stack.Children.Add(l);
                stack.Children.Add(b);
                stack.Orientation = Orientation.Horizontal;
                tabItem.Header    = stack;
                tabItem.Content   = filmPageFrame;
                mainTab.Items.Add(tabItem);
                b.Tag    = tabItem;
                b.Click += removePanel;
                mainTab.SelectedItem = tabItem;
                mainTab.Visibility   = Visibility.Visible;
                break;

            case "OpenFood_C_Sharp.Modele.Starship":
                b         = new Button();
                b.Content = " X ";
                Starship     star           = (Starship)ListElements.SelectedItem;
                StarshipPage starshipPage   = new StarshipPage(star.url, backUrl);
                Frame        starsShipFrame = new Frame();
                starsShipFrame.Content = starshipPage;
                tabItem = new TabItem();
                stack   = new StackPanel();

                l         = new Label();
                l.Content = star.ToString();
                stack.Children.Add(l);
                stack.Children.Add(b);
                stack.Orientation = Orientation.Horizontal;
                tabItem.Header    = stack;
                tabItem.Content   = starsShipFrame;
                mainTab.Items.Add(tabItem);
                b.Tag    = tabItem;
                b.Click += removePanel;
                mainTab.SelectedItem = tabItem;
                mainTab.Visibility   = Visibility.Visible;
                break;

            case "OpenFood_C_Sharp.Modele.Vehicle":
                b         = new Button();
                b.Content = " X ";
                Vehicle     v             = (Vehicle)ListElements.SelectedItem;
                VehiclePage vehiclePage   = new VehiclePage(v.url, backUrl);
                Frame       vehiculeFrame = new Frame();
                vehiculeFrame.Content = vehiclePage;
                tabItem   = new TabItem();
                stack     = new StackPanel();
                l         = new Label();
                l.Content = v.ToString();
                stack.Children.Add(l);
                stack.Children.Add(b);
                stack.Orientation = Orientation.Horizontal;
                tabItem.Header    = stack;
                tabItem.Content   = vehiculeFrame;
                mainTab.Items.Add(tabItem);
                b.Tag    = tabItem;
                b.Click += removePanel;
                mainTab.SelectedItem = tabItem;
                mainTab.Visibility   = Visibility.Visible;
                break;

            case "OpenFood_C_Sharp.Modele.Species":
                b         = new Button();
                b.Content = " X ";
                Species     s            = (Species)ListElements.SelectedItem;
                SpeciesPage speciesPage  = new SpeciesPage(s.url, backUrl);
                Frame       speciesFrame = new Frame();
                speciesFrame.Content = speciesPage;
                tabItem   = new TabItem();
                stack     = new StackPanel();
                l         = new Label();
                l.Content = s.ToString();
                stack.Children.Add(l);
                stack.Children.Add(b);
                stack.Orientation = Orientation.Horizontal;
                tabItem.Header    = stack;
                tabItem.Content   = speciesFrame;
                mainTab.Items.Add(tabItem);
                b.Tag    = tabItem;
                b.Click += removePanel;
                mainTab.SelectedItem = tabItem;
                mainTab.Visibility   = Visibility.Visible;
                break;

            case "OpenFood_C_Sharp.Modele.Planet":
                b         = new Button();
                b.Content = " X ";
                Planet     pla         = (Planet)ListElements.SelectedItem;
                PlanetPage planetPage  = new PlanetPage(pla.url, backUrl);
                Frame      planetFrame = new Frame();
                planetFrame.Content = planetPage;
                tabItem             = new TabItem();
                stack     = new StackPanel();
                l         = new Label();
                l.Content = pla.ToString();
                stack.Children.Add(l);
                stack.Children.Add(b);
                stack.Orientation = Orientation.Horizontal;
                tabItem.Header    = stack;
                tabItem.Content   = planetFrame;
                mainTab.Items.Add(tabItem);
                b.Click += removePanel;
                mainTab.SelectedItem = tabItem;
                mainTab.Visibility   = Visibility.Visible;
                break;
            }
        }