update templates.php.