Working on search functionality for template