adding a controller to handle http request for viewing the results