Added method for toggleClass