restore inventory according to active tab