added searching in table of inventory