build item rows, update search function