     private func setData() {
         backgroundColor = .whiteTint
         searchBar.backgroundImage = UIImage()
-        searchBar.showsScopeBar = true
+        searchBar.delegate = self
         cancel.setTitle(S.Button.cancel, for: .normal)
         cancel.tap = { [weak self] in
+            self?.filters = []
             self?.searchBar.resignFirstResponder()
             self?.didCancel?()
         }

    case received
    case pending
    case complete

    var description: String {
        switch self {

            return { $0.isPending }
        case .complete:
            return { !$0.isPending }
        case .text(let text):
            return { transaction in
                if transaction.hash.contains(text) {
                    return true
                }
                if let address = transaction.toAddress, address.contains(text) {
                    if address.contains(text) {
                        return true
                    }
                }
                return false
            }
        }
    }
}

extension SearchFilterType : Equatable {}

func ==(lhs: SearchFilterType, rhs: SearchFilterType) -> Bool {
    switch (lhs, rhs) {
    case (.sent, .sent):
        return true
    case (.received, .received):
        return true
    case (.pending, .pending):
        return true
    case (.complete, .complete):
        return true
    case (.text(_), .text(_)):
        return true
    default:
        return false
    }
}


typealias TransactionFilter = (Transaction) -> Bool

