Added search functionality with template.