Fixed error of stock index and adding links to edit a pantry item