Moved the filter variable used by the views to a variable in the views.js instad of a parameter to all methods in all controllers.