added badges and fixed templaterenderer