add DeviceController, BaseController, JsonResponse