add template.php file and fix search block