improve the matrix editor by replacing the validator with own code