                 view.removeFromSuperview()
             }
         }
+
+        var newTabButtons = [MenuButton]()
+        var newTitles = [String]()
 
         let size = scrollWrapperView.frame.size
         let contentView = UIView(frame: CGRect.init(x: 0, y: 0, width: size.width * CGFloat(account.tabs.count), height: size.height))


            let button = createMenuButton(i, icon: icon)
            tabWrapperView.addSubview(button)
            tabButtons.append(button)
            titles.append(title)

            if let statusVc = vc as? StatusTableViewController {
                let page = i

            }
        }

        tabButtons = newTabButtons
        titles = newTitles
        tabScrollView.contentSize = tabWrapperView.frame.size

        for view in scrollView.subviews {
