     :param: sender UIButton from which the PathView controller will be shown.
     */
     func showPathPopover(sender: UIButton) {
+        self.toggleBarMenu(forceClose: true)
+        
         let pathViewController = T2GPathViewController()
         pathViewController.modalPresentationStyle = .Popover
         pathViewController.preferredContentSize = CGSizeMake(self.view.frame.width * 0.8, 256)

    Proxy function of toggleBarMenu(forceClose) for UIBarButtonItem action call.
    */
    func toggleBarMenu() {
        self.toggleBarMenu(false)
    }
    
    /**

    :returns: The view controller that was popped from the stack.
    */
    override func popViewControllerAnimated(animated: Bool) -> UIViewController? {
        self.toggleBarMenu(forceClose: true)
        
        var poppedViewController = super.popViewControllerAnimated(animated)
        if let visibleViewController = self.visibleViewController as? T2GViewController {
