extract top-menu to variable