Index: sansview/perspectives/fitting/fitpage.py
===================================================================
--- sansview/perspectives/fitting/fitpage.py	(revision dcf29d72fbb8dcfe3b667c7278083176f2a6cf45)
+++ sansview/perspectives/fitting/fitpage.py	(revision cfc091378ea439152bd4e2d41ece44c4e94ebece)
@@ -26,12 +26,11 @@
   
     """
-    def __init__(self,parent, page_info, name=""):
-        BasicPage.__init__(self, parent, page_info,name)
+    def __init__(self,parent, page_info):
+        BasicPage.__init__(self, parent, page_info)
         """ 
             Initialization of the Panel
         """
-        self.name= self.data.name
-        page_info.page_name= self.data.name
-       
+        self.name = self.data.name
+        
         ## fit page does not content npts txtcrtl
         self.npts=None
@@ -42,9 +41,11 @@
         
         self._fill_datainfo_sizer()
+        
         self._fill_model_sizer( self.sizer1)
+        self._on_select_model(event=None)
         self._fill_range_sizer() 
-        self.model = self.formfactorbox.GetClientData(0)()
-        self.page_info.model= self.model
-        self._on_select_model(event=None)
+        
+       
+        ## to update the panel according to the fit engine type selected
         self.Bind(EVT_FITTER_TYPE,self._on_engine_change)
     
@@ -92,6 +93,6 @@
         """
         ## save state of radiobox
-        self.page_info. save_radiobox_state( self.description_hide )
-        self.page_info. save_radiobox_state( self.description_show )
+        #self.page_info. save_radiobox_state( self.description_hide )
+        #self.page_info. save_radiobox_state( self.description_show )
         ## Show description
         if not self.description_show.GetValue():
@@ -99,8 +100,10 @@
             
         else:
-            model=self.page_info.model
+            #model=self.page_info.model
+            
             description=""
-            if model!=None:
-                description = self.page_info.model.description
+            if self.model!=None:
+                description = self.model.description
+                #description = self.page_info.model.description
             self.description = wx.StaticText( self,-1,str(description) )
             self.sizer_description.Add( self.description, 1, wx.EXPAND | wx.ALL, 10 )
@@ -410,4 +413,5 @@
         self.compute_chisqr()
         
+        
     def get_range(self):
         """
@@ -512,5 +516,6 @@
                             "Data contains smearing information %s"%msg))
             self.manager.set_smearer(smear, qmin= self.qmin_x, qmax= self.qmax_x)   
-              
+        ## save the state enable smearing
+        self.save_current_state()
   
     def compute_chisqr2D(self):
@@ -593,4 +598,5 @@
         """
         self.param_toFit=[]
+        
         if  self.parameters !=[]:
             if  self.cb1.GetValue()==True:
@@ -608,5 +614,6 @@
                     item[0].SetValue(False)
                 self.param_toFit=[]
-               
+        self.save_current_state()  
+        
                 
                 
@@ -640,5 +647,7 @@
         else:
             self.cb1.SetValue(False)
-    
+        ## save current state of the page
+        self.save_current_state()
+        
     
     def set_model_description(self,description,sizer):
@@ -669,6 +678,6 @@
      
         
-        self.page_info.save_radiobox_state( self.description_hide )
-        self.page_info.save_radiobox_state( self.description_show )
+        #self.page_info.save_radiobox_state( self.description_hide )
+        #self.page_info.save_radiobox_state( self.description_show )
         
         sizer_selection.Add( self.description_show )
@@ -700,4 +709,5 @@
         self.sizer3.Clear(True)
         self.parameters = []
+        #self.page_info.parameters=[]
         self.param_toFit=[]
         self.fittable_param=[]
@@ -823,4 +833,7 @@
                 self.parameters.append([cb,item, ctl1,
                                         text2,ctl2, ctl3, ctl4,None])
+                #self.page_info.parameters.append([cb.GetValue(),item, ctl1.GetValue(),
+                #                        text2.IsShown(),[ctl2.IsShown(),ctl2.GetValue()],
+                #[ctl3.IsShown(),ctl3.GetValue()],[ ctl4.IsShown(),ctl4.GetValue()],None])
                 
         iy+=1
@@ -855,5 +868,5 @@
         data= Data1D(x=[1,2], y=[3,4], dy=[0.1, 0,1])
     
-        from pageInfo import PageInfo
+        from fitpanel import PageInfo
         myinfo = PageInfo(self,  model, data=data )
         
