move filters to middleware for all views