add smarty template engine