Adding a router and controller