function admin_add()
 {
     $this->set('viewFiles', $this->CorePage->find('views'));
     $this->set('layoutFiles', $this->CorePage->find('layouts'));
     parent::admin_add();
     $this->set('parents', $this->CorePage->generatetreelist(null, '{n}.CorePage.id', '{n}.CorePage.title', '-- '));
     if (empty($this->data['CorePage']['view_file'])) {
         $this->data['CorePage']['view_file'] = 'default';
     }
     if (empty($this->data['CorePage']['layout_file'])) {
         $this->data['CorePage']['layout_file'] = 'default';
     }
 }