add attributes to resetMath() and changeColor()