public function EventForm()
 {
     $this->commonScripts();
     Requirements::css('events/css/event.registration.form.css');
     Requirements::javascript("events/js/event.registration.form.js");
     $data = Session::get("FormInfo.Form_EventForm.data");
     $form = new EventForm($this->owner, 'EventForm', false);
     // we should also load the data stored in the session. if failed
     if (is_array($data)) {
         $form->loadDataFrom($data);
     }
     // Optional spam protection
     if (class_exists('SpamProtectorManager')) {
         SpamProtectorManager::update_form($form);
     }
     return $form;
 }