add controller to receive the json request and parse th content