add filter and template