 
     else
       `<span>
+        <ChineseIme corpus={this.props.corpus} />
         <div className="row-fluid search-input-links">
           <a href="" title="Simple search box" onClick={this.showSimple}>Simple</a>&nbsp;|&nbsp;
           <a href="" title="Search for grammatical categories etc." onClick={this.showMultiword}>Extended</a>&nbsp;|&nbsp;


    else if @state.statechart.pathContains('multiword')
      `<span>
        <div className="row-fluid search-input-links">
          <a href="" title="Simple search box" onClick={this.showSimple}>Simple</a>&nbsp;|&nbsp;
          <b>Extended</b>&nbsp;|&nbsp;

  addPhraseButton: ->
    `<button className="btn add-phrase-btn" onClick={this.props.handleAddPhrase}>Or...</button>`

  updateChineseIME: ->
    $("input[type='text']").chineseInput
      debug: false,
      input:
        initial: 'simplified',
        allowChange: false,
      allowHide: true,
      active: $('#ime_check').prop('checked')

  componentDidMount: ->
    @updateChineseIME()

  componentDidUpdate: ->
    $("input[type='text']").unbind()
    @updateChineseIME()


  render: ->
