diff --git a/GUI_Elbow.py b/GUI_Elbow.py
index 1ba9de5bd04ac4e5c1972e113ba1b95c1e472471..c648eedb423f604b4d643d1e46cc22a147b57fa6 100644
--- a/GUI_Elbow.py
+++ b/GUI_Elbow.py
@@ -139,6 +139,7 @@ def find_match(strlist,s):
 # the GUI-class
 class mainPanel(wx.Panel):
     #
+    global flow
     def __init__(self, parent):
         wx.Panel.__init__(self, parent = parent)
         self.parent = parent
@@ -372,7 +373,17 @@ class mainPanel(wx.Panel):
         #
         self.Centre() 
         self.Show(True)      
-            
+    def update(self):
+        # set the value of the label to the current flow case
+        #self.__init__()
+        self.case_lbl.SetLabel(flow.case)
+        # updating the slider for Rc is not working properly...
+        if np.any(self.pathint) :
+            self.pathint = np.array(0)
+            self.ax_meter.cla()
+            self.canvas_meter.draw()
+        self.draw()
+        #self.draw_meter()
     def float_slider(self,title,init_val,min_val,max_val,factor,b=1):
         txtwidth = 80
         b = 10
@@ -799,7 +810,7 @@ class mainPanel(wx.Panel):
         # the contour Plot in axis 0 (left side)
         #ax.cla()
         #self.__init__(self.parent)
-        self.case_lbl.SetLabel(flow.case)
+        #self.case_lbl.SetLabel(flow.case)
         self.ax0.cla()
         self.ax1.cla()
         
@@ -1071,7 +1082,7 @@ class mainPanel(wx.Panel):
         a = 1100
         #
 class Main(wx.Frame):
-    
+    global flow
     def __init__(self):    
         #        
         wx.Frame.__init__(self, parent = None,id = wx.ID_ANY, title = "Flowmeter behind Elbow", size = (1400,1000))
@@ -1108,33 +1119,17 @@ class Main(wx.Frame):
     def OnLoad_SE(self,e):
         global flow
         flow = Elbow_profile('SingleElbow')
-        # del self.mypanel
-        # wx.Frame.__init__(self, parent = None,id = wx.ID_ANY, title = "Flowmeter behind Single Elbow", size = (1400,1000))
-        # self.mypanel = mainPanel(self)
-        # self.mypanel.__init__(self)
-        self.__init__()
-        #self.mypanel.case_lbl.SetLabel(flow.case)
-        self.mypanel.draw()
+        self.mypanel.update()
         #
     def OnLoad_DE(self,e):
         global flow
         flow = Elbow_profile('DoubleElbow')
-        del self.mypanel
-        wx.Frame.__init__(self, parent = None,id = wx.ID_ANY, title = "Flowmeter behind Double Elbow", size = (1400,1000))
-        self.mypanel = mainPanel(self)
-        self.mypanel.__init__(self)
-        #self.mypanel.case_lbl.SetLabel(flow.case)
-        self.mypanel.draw()
+        self.mypanel.update()
         #
     def OnLoad_DSE(self,e):
         global flow
         flow = Elbow_profile('Double_S_Elbow')
-        del self.mypanel
-        wx.Frame.__init__(self, parent = None,id = wx.ID_ANY, title = "Flowmeter behind Double S Elbow", size = (1400,1000))
-        self.mypanel = mainPanel(self)
-        self.mypanel.__init__(self)
-        #self.mypanel.case_lbl.SetLabel(flow.case)
-        self.mypanel.draw()
+        self.mypanel.update()
         #
     def Onref(self,e):
         global flow