swapped out HttpResponse for JsonResponse