       @props.refresh()
     ).bind this
 
-  switchUserRole: (uid, role) ->
-    apiCall "POST", "/api/group/teacher/role_switch", {gid: @props.gid, uid: uid, role: role}
+  switchUserRole: (tid, role) ->
+    apiCall "POST", "/api/group/teacher/role_switch", {gid: @props.gid, tid: tid, role: role}
     .done ((resp) ->
       apiNotify resp
       @props.refresh()
     ).bind this
 
   render: ->
-    user = _.first @props.members
-
     if @props.teacher
       userButton =
       <Button bsStyle="success" className="btn-sq">

          {userButton}
        </Col>
        <Col xs={6}>
          <h4>{user.username}</h4>
          <p>
            <strong>Name:</strong> {user.firstname} {user.lastname}
          </p>
          <p><strong>Email:</strong> {user.email}</p>
        </Col>
        <Col xs={4}>
          <ButtonGroup vertical>

      </Button>

    if @props.teacher
      switchUser = <Button onClick={@switchUserRole.bind(null, @props.tid, "member")}>Make Member</Button>
    else
      switchUser = <Button onClick={@switchUserRole.bind(null, @props.tid, "teacher")}>Make Teacher</Button>

    <ListGroupItem>
      <Row>
