Filter table items when clicking a dependency