add renderer and template