changed to work with cabinetmenu