use classList to toggle css classes if it exists