set correct class for spinning icon