decoupled inventorystate from menustate