     func browserLocationViewDidTapLocation(browserLocationView: BrowserLocationView) {
         delegate?.urlBarDidBeginEditing(self)
 
-        insertSubview(editTextField, aboveSubview: locationView)
+        locationContainer.insertSubview(editTextField, aboveSubview: locationView)
         editTextField.snp_remakeConstraints { make in
             make.edges.equalTo(self.locationView)
             return

    }

    private func initViews() {
        locationView = BrowserLocationView(frame: CGRectZero)
        locationView.readerModeState = ReaderModeState.Unavailable
        locationView.delegate = self
        addSubview(locationView)

        editTextField = ToolbarTextField()
        editTextField.keyboardType = UIKeyboardType.WebSearch

        cancelButton.hidden = true
        self.addSubview(cancelButton)

        locationContainer.snp_remakeConstraints { make in
            make.leading.equalTo(self).offset(DefaultPadding)
            make.centerY.equalTo(self).offset(StatusBarHeight / 2.0)
        }

        locationView.snp_makeConstraints { make in
            make.edges.equalTo(self.locationContainer)
            return
        }

        tabsButton.snp_remakeConstraints { make in
            make.leading.equalTo(self.locationContainer.snp_trailing).offset(8)
            make.trailing.equalTo(self)
            make.centerY.equalTo(self).offset(StatusBarHeight / 2.0)
            make.width.height.equalTo(ToolbarHeight)
        }

        progressBar.snp_remakeConstraints { make in
            make.centerY.equalTo(self.snp_bottom)
            make.width.equalTo(self)
        }

        cancelButton.snp_makeConstraints { make in
            make.centerY.equalTo(self).offset(StatusBarHeight / 2.0)
            make.right.equalTo(self).offset(-2)
        }
    }
