update Smarty