Added livesearch function to match_controller.rb