extracted View creation to function which returns a respose and Started decoupling HttpRequests
extracted the need for the HttpResponse to be passed into the views and created a View interface