issue #20734: Make action menu dynamic and some other groundwork for inventory.