replace toggleClass javascript with addClass and removeClass