update matrix calc ui