Filtering implemented

Able to filter the variables in the new view.