se {
                    datasetContainer.className = 'list-view';
                    displayListView(currentPageItems);
                }
            }

            // Updated grid view display with fixed sizes
            function displayGridView(items) {
                items.forEach(dataset => {
                    const card = document.createElement('div');
                    card.classList.add('card', 'border', 'rounded', 'flex', 'flex-col', 'dataset-card');

                    // Process tags for 