     Body = NetworkActivity if store?.isLoading(id)
 
     guardProps =
-      onlyPromptIf: ->
+      onlyPromptIf: (ev) ->
         id and store?.isChanged(id)
+
       placement: 'right'
       message: "You will lose all unsaved changes"
 


    return newId

  onReset: (ev) ->
    ev.preventDefault()
    @props.location.visitSearch()

  render: ->

            <BS.ButtonToolbar className="navbar-btn">
              {if view
                <SuretyGuard
                  onConfirm={@onSearch}
                  {...guardProps}
                >
                  <BS.Button className="btn btn-danger back">Search</BS.Button>
                </SuretyGuard>}

              <SuretyGuard
