rewrote app-controller : example of json edition.