 
   getInitialState: ->
     triggerPlanStats: false
+    isViewingStats: false
 
   showPlanStats: ->
-    if @state.triggerPlanStats and @refs.trigger?
+    if @state.triggerPlanStats and not @state.isViewingStats and @refs.trigger?
       triggerEl = @refs.trigger.getDOMNode()
       triggerEl.click()
 

    )
    params = @context.router.getCurrentParams()
    params.planId = @props.item.plan.id
    @setState(triggerPlanStats: false)
    # store plan id in route as part of history if opened
    # if a link from the modal is clicked, then back will transition back
    # with this plan stat open


  componentDidUpdate: ->
    @adjustForLongLabels()

    @showPlanStats()

  adjustForLongLabels: ->
    labelDOMNode = @refs.label?.getDOMNode()
