add smarty as template