add access filter to template