Routing and Json set up