public function submitAction()
 {
     if (!$this->getRequest()->isPost()) {
         return $this->_helper->json->sendJson(true);
     }
     $form = $this->getForm();
     if (!$form->isValid($_POST)) {
         return $this->_helper->json->sendJson($form->getErrorArray());
     }
     // Get the values and proceed
     $values = $form->getValues();
     $title = $values['title'];
     $content = $values['content'];
     $id = $values['id'];
     // Get the user
     $application = Stuffpress_Application::getInstance();
     // Get the widget properties
     $properties = new WidgetsProperties(array(Properties::KEY => $id, Properties::USER => $application->user->id));
     // Save the new properties
     $properties->setProperty('title', $title);
     $properties->setProperty('content', $content);
     // Ok send the result
     return $this->_helper->json->sendJson(false);
 }