 
 class ConfigViewController: UIViewController {
     
+    let orientationKey = "RunalysisRunViewOrientation"
+    
     /*!
      * Overrides UIViewController::viewDidLoad()
      */

            ypos += iconSize + 10
            i++
        }
        container.addSubview(orientation)
        
        self.view.addSubview(container)

        self.view.addSubview(backButton)
    }
    
    /*!
     * Handler for the segmented control actions.
     *
     * Saves the choice to the NSUserDefaults.
     *
     * @param sender
     */
    func orientationSelect(sender: UISegmentedControl) {
        NSUserDefaults.standardUserDefaults().setInteger(sender.selectedSegmentIndex, forKey: self.orientationKey)
        NSUserDefaults.standardUserDefaults().synchronize()
    }
    
    /*!
