private void ItemOpenHomepageItemClick(object obj)
        {
            try
            {
                //SecureBrowserItem s = (SecureBrowserItem)HomepageItems.FirstOrDefault(x => x.Id == _itemId);
                if (obj != null)
                {
                    string _itemId = obj as string;
                    foreach (SecureBrowserItem s in HomepageItems)
                    {
                        if (s.Id == _itemId)
                        {
                            if (s != null)
                            {
                                if (this.SelectedTabItem != null)
                                {
                                    string     uri  = null;
                                    SecureItem item = PBData.GetSecureItemById(_itemId);
                                    if (item != null)
                                    {
                                        uri = item.Site.Uri;
                                    }
                                    else
                                    {
                                        Site siteItem = PBData.GetSiteById(_itemId);
                                        uri = siteItem.Uri;
                                    }

                                    if (uri != null)
                                    {
                                        this.SelectedTabItem.ShowOrHideHomepageClick(null);

                                        resolver.GetInstanceOf <IInAppAnalytics>().Get <Events.InAppBrowser, bool>().Log(true);

                                        if (item != null)
                                        {
                                            _pbExtSecureBrowserBridge.OneClickLogin(_itemId, true, TabItemCollection.ToList().FindIndex(p => p.TabId == SelectedTabItem.TabId));
                                        }
                                        else
                                        {
                                            this.SelectedTabItem.WebBrowser.Navigate(uri);
                                        }
                                    }
                                }
                                else
                                {
                                    SecureItem item = PBData.GetSecureItemById(_itemId);
                                    if (item != null)
                                    {
                                        TabItem defaultItem = new TabItem(this, resolver);
                                        String  siteUri     = item.Site.Uri;
                                        defaultItem.SearchBar.Address = siteUri;
                                        TabItemCollection.Add(defaultItem);
                                    }
                                }
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                logger.Error(ex.Message);
            }
        }