add the ajax request for the data into the controller and add then update the view