*Modified the logic of displaying the list of items