private function display($element, Request $request, Response $response) {
        $loops = $this->getLoops();
        $renderer = $loops->getService("renderer");

        $appearance = [];

        if($request->isAjax()) {
            $renderer->addExtraAppearance("ajax");
        }

        $renderer->addExtraAppearance((string)$response->status_code);

        return $renderer->render($element, $appearance);
    }