Add dynamic match table to control_panel.erb, but buggy