update smarty diabook templates bug 525