Add active class to selected table rows