Add filter to grid and list directives