adding hooks to retrieve the filtered table rows