       TocActions.load(courseId)
       return <span className="-loading">Loading...</span>
 
+    selected = TaskPlanStore.getTopics(planId)
     chapters = _.map(TocStore.get(), @renderChapterPanels)
     buttonStyle = if selected?.length then 'primary' else 'disabled'
     shouldShowExercises = selected?.length and @state.showProblems

    total = numSelected + 3

    if @props.canReview and numSelected
      button = <BS.Button bsStyle="primary" onClick={@props.reviewClicked}>Review</BS.Button>
    else if @props.canAdd
      button = <BS.Button bsStyle="primary" onClick={@props.addClicked}>Add</BS.Button>

    <BS.Panel className bsStyle="default">
      <BS.Grid>

    if not @state.showProblems
      footer =
        <span>
          <BS.Button className="-show-problems" bsStyle={buttonStyle} onClick={@selectProblems}>Show Problems</BS.Button>
          <BS.Button bsStyle="link" onClick={hide}>Cancel</BS.Button>
        </span>

