Adding search function to search list template.