fix mutex bug for matrix
add matrix compare function
add common enableItmes method for every checkbox/radio function