I created a MenuView with a vbox as root, which holds 2 menubar (one for File, Modify, Visulize, etc and one for other functions).
Then I thought I could inject that view in every other view so I could have the menu always on top of the borderpanes without rewriting it in every View.
But when I set the action of a menu item, say with
replaceWith<>
it only replaces the MenuView, not the entire current view. So I need to access the current view but I can't find how.