added a tempplate and confgured to render html