added function to inventory listbox.