implement toggle for inventory