public function Homepage() {
      $this->Permission('Garden.Settings.Manage');
      
      // Page setup
      $this->AddSideMenu('dashboard/settings/homepage');
      $this->Title(T('Homepage'));
      
      $CurrentRoute = GetValue('Destination', Gdn::Router()->GetRoute('DefaultController'), '');
      $this->SetData('CurrentTarget', $CurrentRoute);
      if (!$this->Form->AuthenticatedPostBack()) {
         $this->Form->SetData(array(
            'Target' => $CurrentRoute
         ));
      } else {
         $NewRoute = GetValue('Target', $this->Form->FormValues(), '');
         Gdn::Router()->DeleteRoute('DefaultController');
         Gdn::Router()->SetRoute('DefaultController', $NewRoute, 'Internal');
         $this->SetData('CurrentTarget', $NewRoute);
         
         // Save the preferred layout setting
         SaveToConfig(array(
            'Vanilla.Discussions.Layout' => GetValue('DiscussionsLayout', $this->Form->FormValues(), ''),
            'Vanilla.Categories.Layout' => GetValue('CategoriesLayout', $this->Form->FormValues(), '')
         ));
         
         $this->InformMessage(T("Your changes were saved successfully."));
      }
      
      $this->Render();      
   }