update frontend matrix