     saveable = plan?.title and plan?.due_at and plan?.settings?.page_ids?.length > 0
     publishable = saveable and not TaskPlanStore.isChanged(id)
     deleteable = not TaskPlanStore.isNew(id)
-    headerText = if id then 'Edit Reading' else 'Add Reading'
+    headerText = if TaskPlanStore.isNew(id) then 'Add Reading' else 'Edit Reading'
     topics = TaskPlanStore.getTopics(id)
 
     footer= <ReadingFooter 

    store: TaskPlanStore
    actions: TaskPlanActions

  update: ->
    id = @getId()
    plan = TaskPlanStore.get(id)
    if plan and id isnt plan.id
      @setState({id: plan.id})
    else
      @setState({})

  setDueAt: (value) ->
    id = @getId()
    TaskPlanActions.updateDueAt(id, value)

ReadingFooter = React.createClass
  render: ->
    classes = []
    classes.push('disabled') unless @props.onSave
    classes = classes.join(' ')

    if @props.onPublish
      publishButton = <BS.Button bsStyle="primary" onClick={@props.onPublish}>Publish</BS.Button>
      saveStyle = "link"
    else
      saveStyle = "primary"

    if @props.onDelete
      deleteLink = <BS.Button bsStyle="link" onClick={@props.onDelete}>Delete</BS.Button>

    saveLink = <BS.Button bsStyle={saveStyle} className={classes} onClick={@props.onSave}>Save as Draft</BS.Button>

    <span>
      {publishButton}
