change toggleing of records to use toggleClass