added feature for filtering tables