         @filterMovesBy(moveName)
 
   filterMovesBy: (moveName) =>
-    $table = @$('.table-moves')
+    $table = @getActivePokemonView().find('.table-moves')
     $allMoves = $table.find('tbody tr')
     moveRegex = new RegExp(moveName, "i")
     $moves = $allMoves.filter ->


  events:
    'click .pokemon_list li': 'clickPokemon'
    'click .add_pokemon': 'addEmptyPokemon'
    'click .save_team': 'saveTeam'
    'change .species_list': 'changeSpecies'
    'change .selected_nature': 'changeNature'

    $table.removeClass('hidden')

  hideMoves: =>
    $table = @getActivePokemonView().find('.table-moves')
    $table.addClass('hidden')

  selectMove: (e) =>
    $this = $(e.currentTarget)
    moveName = $this.data('move-id')
    type = MoveData[moveName].type.toLowerCase()
    $moves = @getActivePokemonView().find('.selected_moves')
    $input = $moves.find('input').first()
    $input.replaceWith("""<div class="button move-button #{type}">#{moveName}</div>""")
    $moves.find('input').first().focus()
