public function renderToolProspectUpdateFormAction()
    {
        $prospectId = (int) $this->params()->fromQuery('prospectId', '');
        
        $melisCoreConfig = $this->serviceLocator->get('MelisCoreConfig');
        $appConfigForm = $melisCoreConfig->getFormMergedAndOrdered('melistoolprospects/tools/melistoolprospects_tool_prospects/forms/melistoolprospects_tool_prospects_update','melistoolprospects_tool_prospects_update');
        $factory = new \Zend\Form\Factory();
        $formElements = $this->serviceLocator->get('FormElementManager');
        $factory->setFormElementManager($formElements);
        $form = $factory->createForm($appConfigForm);
        
        $prospectTable = $this->getServiceLocator()->get('MelisProspects');
        $themeTable = $this->getServiceLocator()->get('MelisCmsProspectsThemeTable');
        $themeItemTable = $this->getServiceLocator()->get('MelisCmsProspectsThemeItemTable');
        $container = new Container('meliscore');
        
        if(!empty($prospectId)){
            
           $prospect =  $prospectTable->getEntryById($prospectId)->current();
           
           if(!empty($prospect)){
               
               $theme  =  $themeItemTable->getEntryById($prospect->pros_theme)->current();
               
               if(!empty($theme)){
                   
                   $temp  =  $themeItemTable->getItemByThemeId($theme->pros_theme_id, (int) $container['melis-lang-id'], true);
                   $data = array();
                   
                   foreach($temp as $item){
                       $i = $item;
                       if(empty($item->item_trans_text)){
                           $i = $themeItemTable->getItemById(
                               $item->pros_theme_item_id,
                               null,
                               true
                               )->current();
                       }
                       $data[] = $i;
                   }
                  
                   $form->get('pros_theme')->loadValueOptions($data);
               }else{
                   
                   $load[] = array(
                       'pros_theme_item_id' => $prospect->pros_theme,
                       'pros_theme_name' => $prospect->pros_theme
                    );
                   
                   $form->get('pros_theme')->loadValueOptions($load);
               }
               $form->setData((array)$prospect);
           }
        }
        
        $melisKey = $this->params()->fromRoute('melisKey', '');
        $view = new ViewModel();
        $view->melisKey = $melisKey;
        $view->form = $form;
        $view->title = "tr_prospect_manager_fm_delete_update_title";
        return $view;
    }