adds filter to controller