Determining whether the inventory screen is on or off