      if (view === 'grid') {
                container.style.gridTemplateColumns = 'repeat(auto-fill, minmax(300px, 1fr))';
            } else {
                container.style.gridTemplateColumns = '1fr';
            }
        }

        // Update statistics
        function updateStats() {
            document.getElementById('totalCommands').textContent = allCommands.length;
            document.getElementById('visibleCommands').textContent = filteredCommands.length;
            
            const categor