Optimize add and remove class.