     var isNetworkDown = false
     var searchResultsSection: Section!
     var sectionIndexes: [String: Int]! = [:]
-    var tableView: homeTableView!
+    var tableView: HomeTableView!
     var initialTableViewIndexMidY: CGFloat!
     var searchBar: UISearchBar!
     let infoButton = UIButton(type: .infoLight)

    }
}

class homeTableView: UITableView {
    override var tableHeaderView: UIView? {
        didSet {
            if tableHeaderView == nil {
                self.contentInset = .init(top: -36, left: 0, bottom: 0, right: 0)
            } else {
                self.contentInset = .zero
            }
        }
    }
}

// MARK: WhatsNew Delegate
extension HomeViewController: WhatsNewDelegate {
    
    func okButtonPressed() {
        userDefaults.set(true, forKey: Constants.UserDefaults.whatsNewDismissed)
        tableView.tableHeaderView = nil
//        let lastRowIndex = IndexPath(row: 0, section: sections.count - 1)
//        let lastRowFrame = tableView.rectForRow(at: lastRowIndex)
//        tableView.contentInset = UIEdgeInsets(top: tableView.contentInset.top,
//                                              left: tableView.contentInset.left,
//                                              bottom: tableView.frame.height - lastRowFrame.height - lastRowFrame.origin.y + whatsNewView.frame.height - 16,
//                                              right: tableView.contentInset.right)
//        let favoritesIndex = IndexPath(row: 0, section: 0)
//        UIView.animate(withDuration: 0.5, animations: {
//            self.tableView.scrollToRow(at: favoritesIndex, at: .top, animated: false)
//            for view in self.whatsNewView.subviews {
//                view.snp.updateConstraints{ (make) in
//                    make.height.equalTo(0)
//                    make.width.equalTo(0)
//                }
//                for subview in view.subviews {
//                    if let label = subview as? UILabel {
//                        label.transform = CGAffineTransform(scaleX: 0.01, y: 0.01)
//                    }
//                    if let button = subview as? UIButton {
//                        button.transform = CGAffineTransform(scaleX: 0.01, y: 0.01)
//                    }
//
//                }
//            }
//            self.whatsNewView.layoutIfNeeded()
//        }) { (completed) in
//            if completed {
//                self.tableView.tableHeaderView = nil
//                self.tableView.contentInset = .zero
//            }
//        }
    }

    func cardPressed() {
        print("Card Pressed")
    }
}


            make.height.equalTo(38)
        }
        
        if !tableView.isEmptyDataSetVisible {
            createWhatsNewView()
        }
    }

    override func viewDidLayoutSubviews() {
