Add the right templating for the filtering