added if expression for CPU widget