filter now passes model and view to fn