Setting up controllers and routers