fix missing toggleClass replacement