Improved filtering for listview.