added filter function in template list