refactored code to make tableview into chooser view that has two components - choices for lines, and choices for values/filters