update matrix.html