         
         mainStackView.leadingAnchor.constraint(equalTo: view.leadingAnchor, constant: 46).isActive = true
         mainStackView.trailingAnchor.constraint(equalTo: view.trailingAnchor, constant: -46).isActive = true
-        mainStackView.bottomAnchor.constraint(equalTo: view.bottomAnchor, constant: -46).isActive = true
-        
-        shelfController.view.bottomAnchor.constraint(equalTo: mainStackView.topAnchor, constant: 0).isActive = true
+        mainStackViewBottomConstraint.isActive = true
+        
+        shelfBottomConstraint.isActive = true
+        mainStackViewTopConstraint.isActive = false
         
         showOverview()
     }

        }
    }
    
    override func loadView() {
        view = NSView(frame: NSRect(x: 0, y: 0, width: MainWindowController.defaultRect.width - 300, height: MainWindowController.defaultRect.height))
        view.wantsLayer = true

            
            let shouldHideButtonsBar = self.transcriptButton.isHidden && self.bookmarksButton.isHidden
            self.menuButtonsContainer.isHidden = shouldHideButtonsBar
            
            let shouldHideShelf = (viewModel?.sessionInstance.type == .lab)
            self.shelfController.view.isHidden = shouldHideShelf
            
            if isViewLoaded {
                shelfBottomConstraint.isActive = !shouldHideShelf
                mainStackViewTopConstraint.isActive = shouldHideShelf
                mainStackViewBottomConstraint.isActive = !shouldHideShelf
            }
        }
    }
    
