public function logboardAction($token, Request $request)
    {
        $this->loadServices($token, $request);
        if ($this->queryManager->isPreview())
            return new Response($this->twig->render("LogboardBundle:Collector:viewer.html.twig", array('logs_stack' => $this->profilerManager->getPreviewData(), 'preview' => $this->queryManager->getPreview())), 200, array('Content-Type' => 'text/html'));

        if (null === $this->profiler = $this->profilerManager->getProfiler())
            throw new NotFoundHttpException('The profiler must be enabled.');

        if (!$profile = $this->profilerManager->getProfile())
            return new Response($this->twig->render('WebProfilerBundle:Profiler:info.html.twig', array('about' => 'no_token', 'token' => $token)), 200, array('Content-Type' => 'text/html'));

        return new Response( $this->twig->render("LogboardBundle:Collector:logger.html.twig", array(
                'profile' => $profile,
                'profiler_manager' => $this->profilerManager,
                'templates' => $this->getTemplateManager()->getTemplates($profile),
                'is_ajax' => $request->isXmlHttpRequest(),
                'query_manager' => $this->queryManager)
        ), 200, array('Content-Type' => 'text/html'));
    }