added templating and views