Implemented routing & json response