fix the filtering behavior. at this point, there is much inefficiency
and redundancy in the code of interactive behavior of tabular viewer.