         // create Table view
         self.tableView = UITableView(frame: UIScreen.main.bounds, style: UITableViewStyle.grouped)
         self.tableView.allowsSelectionDuringEditing = true
+        let barHeight = self.navigationController?.navigationBar.frame.height ?? 44
+        self.recentContentOffset = CGPoint(x:0, y: -1 * barHeight)
+        print("barHeight = \(barHeight)")
         self.view.backgroundColor = UIColor.white
         self.view.addSubview(self.tableView)
         let width = self.view.bounds.width

    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        
        switch self.settingsViewType {
        case .primary:

        self.delegate = SettingsViewDelegate(controller: self, selectionViewSection: self.selectedSection)
        self.tableView.dataSource = self.dataSource
        self.tableView.delegate = self.delegate
    }
    
    override func viewWillDisappear(_ animated: Bool) {
        self.recentContentOffset = self.tableView.contentOffset;
        super.viewWillDisappear(animated)
    }
    
    /**
