public static MainController GetInstance()
 {
     if (controller == null)
     {
         controller = new MainController();
     }
     return controller;
 }