 window.ClientController =
   showFact: (fact_id) ->
     fact = new Fact id: fact_id
+
     fact.on 'destroy', ->
       parent.remote.hide()
       parent.remote.stopHighlightingFactlink fact_id

    fact.fetch success: ->
      newClientModal = new DiscussionModalContainer
      FactlinkApp.discussionModalRegion.show newClientModal

      view = new DiscussionView model: fact
      view.on 'render', parent.onModalReady

      newClientModal.mainRegion.show view

  showNewFact: (params={}) ->

      url: params.url
      csrf_token: params.csrf_token
      guided: FactlinkApp.guided
    factsNewView.on 'render', parent.onModalReady
    factsNewView.on 'factCreated', (fact) ->  parent.highlightLastCreatedFactlink(fact.id, params.fact)
    clientModal.mainRegion.show factsNewView

