/**
  * execute command
  */
 function &executeCommand()
 {
     global $ilCtrl;
     // get current command
     $cmd = $ilCtrl->getCmd();
     $next_class = $ilCtrl->getNextClass($this);
     $q_type = $_POST["q_type"] != "" ? $_POST["q_type"] : $_GET["q_type"];
     switch ($next_class) {
         case "ilquestioneditgui":
             include_once "./Modules/TestQuestionPool/classes/class.ilQuestionEditGUI.php";
             $edit_gui = new ilQuestionEditGUI();
             if ($q_type != "") {
                 $edit_gui->setQuestionType($q_type);
             }
             $edit_gui->setPageConfig($this->getPageConfig());
             //$edit_gui->setPoolRefId($qpool_ref_id);
             $this->setTabs();
             $edit_gui->addNewIdListener($this, "setNewQuestionId");
             $edit_gui->setSelfAssessmentEditingMode(true);
             $ret = $ilCtrl->forwardCommand($edit_gui);
             $this->tpl->setContent($ret);
             break;
         default:
             //set tabs
             if ($cmd != "insert") {
                 $this->setTabs();
             } else {
                 if ($_GET["subCmd"] != "") {
                     $cmd = $_GET["subCmd"];
                 }
             }
             $ret = $this->{$cmd}();
     }
     return $ret;
 }