better to use addClass and removeClass.