change condition to toggleClass