change toggle function to toggleClass