added a new basic routing system and a json header method in the controller.