search function and template modified
search function and template modified