toggle click event
            historyToggle.addEventListener('click', (event) => {
                event.stopPropagation();
                toggleSearchHistory();
            });

            // Clear history button click event
            clearHistoryBtn.addEventListener('click', (event) => {
                event.stopPropagation();
                clearSearchHistory();
            });

            // Load saved preferences
            const savedTheme = storage.getItem('theme_preference');
            if