1) Change MainWindowController’s cloneHeaders to an IBAction for access from an nsmenu of MainWindowController
2) Change cloneHeaders to use itemAtRow:clickedRow to get the current item instead of using [self currentUrl];
3) Hide or show the clone headers menu item depending on what you’re clicking in menuNeedsUpdate: