;

                    datasetContainer.appendChild(card);
                });

                // Initialize lazy loading for grid view images
                initLazyLoading();
            }

            // Updated list view with better text handling
            function displayListView(items) {
                items.forEach(dataset => {
                    const listItem = document.createElement('div');
                    listItem.classList.add('list-item', 'border', 'rounded');

                    // 