add select_matrix field ruby and js side