added routing, templating