added templating and index.html