         setupTableView()
         setupAPIProviders()
         setupRx()
+        setupKeyboardNotifications()
         setInitialValue()
-        setKeyboardNotifications()
 
         definesPresentationContext = true
     }

            .subscribe(onNext: handleResults, onError: handleError)
            .addDisposableTo(disposeBag)
    }

    private func setInitialValue() {
        if let initialValue = edit, initialValue.trimmingCharacters(in: whitespace).characters.count > 0 {
            searchController.searchBar.textField?.text = initialValue.replacingOccurrences(of: addressSufix, with: "")
        }
    }

    private func setKeyboardNotifications() {
        NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillShow), name: NSNotification.Name.UIKeyboardWillShow, object: nil)
        NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillShow), name: NSNotification.Name.UIKeyboardWillChangeFrame, object: nil)
        NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillHide), name: NSNotification.Name.UIKeyboardWillHide, object: nil)
    }

    // MARK: - Helper methods

            reloadTable()
        }
    }
    
    private func reloadTable() {
        DispatchQueue.main.async {
            self.table.reloadData()
