added routing and templates for links