         configViewController.delegate = strongSelf
         let navController = UINavigationController(rootViewController: configViewController)
         strongSelf.present(navController, animated: true, completion: nil)
-      })
-      .addDisposableTo(self.disposeBag)
+        })
+      .addDisposableTo(self.disposeBag)
+    self.navigationItem.rightBarButtonItem = rightBarButtonItem
   }
 
 }

        strongSelf.barChart.notifyDataSetChanged()
        })
      .addDisposableTo(self.disposeBag)

    let rightBarButtonItem = self.navigationItem.rightBarButtonItem!
    rightBarButtonItem.rx.tap
      .subscribe(onNext: { [weak self] in
        guard let strongSelf = self else { return }

  override func viewDidLoad() {
    super.viewDidLoad()

    self.setupCharts()
    self.setupBindings()
    self.setupNavigation()
  }

  override func viewWillAppear(_ animated: Bool) {
