public function getStateAction()
 {
     $frontendButtonDisabled = false;
     if (SearchPhp_Plugin::frontendCrawlerRunning() or SearchPhp_Plugin::frontendCrawlerScheduledForStart() or !SearchPhp_Plugin::frontendConfigComplete()) {
         $frontendButtonDisabled = true;
     }
     $message = str_replace("------------------------------------------- ", "<br/>", SearchPhp_Plugin::getPluginState());
     $frontendStopButtonDIsabled = false;
     if (!SearchPhp_Plugin::frontendConfigComplete() or !SearchPhp_Plugin::frontendCrawlerRunning() or SearchPhp_Plugin::frontendCrawlerStopLocked()) {
         $frontendStopButtonDIsabled = true;
     }
     $this->_helper->json(array("message" => $message, "frontendButtonDisabled" => $frontendButtonDisabled, "frontendStopButtonDisabled" => $frontendStopButtonDIsabled));
 }
        id:'f1Form',
        renderTo: 'crawler_form',
        autoScroll: true,
        border:false,
        width: 600,
        autoHeight:true ,
        items:[
            {
                id : 'stateMessage',
                fieldLabel: '<?php 
echo $this->translate->_("searchphp_status");
?>
',
                xtype:'displayfield',  
                html: '<?php 
echo str_replace("------------------------------------------- ", "<br/>", SearchPhp_Plugin::getPluginState());
?>
'
            },
            {   xtype: 'buttongroup',
                fieldLabel: '<?php 
echo $this->translate->_("searchphp_frontend_crawler");
?>
',
                hideLabel: <?php 
echo $this->config['search']['frontend']['enabled'] ? "false" : "true";
?>
,
                hidden: <?php 
echo $this->config['search']['frontend']['enabled'] ? "false" : "true";
?>