             <h3>How am I doing?</h3>
             <BS.Button
               bsStyle="primary"
-              onClick={@viewWork}
+              onClick={_.partial(@selectTab, 2)}
               className="-view-my-work"
             >
               View All My Work

        <BS.Col xs={12} md={9}>
          <div className="course-title">{longTitle}</div>

          <BS.TabbedArea animation={false}>

            <BS.TabPane eventKey={1} tab='This Week'>
              <ThisWeekPanel   courseId={courseId}/>

module.exports = React.createClass
  displayName: 'StudentDashboard'

  propTypes:
    courseId: React.PropTypes.any.isRequired
    selectedTabIndex: React.PropTypes.number

  getInitialState: ->
    selectedTabIndex: 1

  selectTab: (index) ->
    this.setState(selectedTabIndex:index);

  render: ->
    courseId = @props.courseId
