Adding routing and templates