updated template.php to include changes in old search functionality