Wix websie, velo code. The current table does not reset pagination to "1 of x" when selecting filters or entering a search.  Given the following code for the site, add the function to reset pagination: import wixData from "wix-data";

$w.onReady(function () {
    // Function to execute the search
    function executeSearch() {
        let searchValue = $w("#searchInput").value.trim();
        $w("#dataset1022").setFilter(
            wixData.filter().contains('name', searchValue)
        );
    }

    // Function to reset the search bar, clear the query, and reset highlighted filter tags
    function resetSearch() {
        // Clears the input field
        $w("#searchInput").value = "";
        
        // Resets the dataset filter to remove any search query
        $w("#dataset1022").setFilter(wixData.filter());

        // Reset all filter button highlights
        resetAllButtonHighlights();
    }

    // Function to reset all filter button highlights
    function resetAllButtonHighlights() {
        filterButtons.forEach((buttonId) => {
            $w(buttonId).style.backgroundColor = '#0c3c60'; // Reset each button to the original color
        });
    }

    // List all your filter button IDs here
    const filterButtons = [
        '#tagAll',
        '#tagCategory1',
        '#tagCategory2',
        '#tagCategory3',
        '#tagCategory4',
        '#tagCategory5',
        '#tagCategory6',
        '#tagCategory7'
    ];

    // Add click event to each filter button
    filterButtons.forEach((buttonId) => {
        $w(buttonId).onClick(() => {
            resetAllButtonHighlights();
            if (buttonId === '#tagAll') {
                $w("#dataset1022").setFilter(wixData.filter()); // Reset to show all
            } else {
                highlightAndFilter(buttonId);
            }
        });
    });

    function highlightAndFilter(selectedButtonId) {
        // Highlight the currently clicked button
        $w(selectedButtonId).style.backgroundColor = '#FE6F5E'; // Set highlight color

        // Determine filter criteria based on the button clicked
        let filter = wixData.filter(); // Start with an empty filter
        switch (selectedButtonId) {
            case '#tagCategory1':
                filter = wixData.filter().eq('type', 'Food & Drinks');
                break;
            case '#tagCategory2':
                filter = wixData.filter().eq('type', 'Retail & Grocer');
                break;
            case '#tagCategory3':
                filter = wixData.filter().eq('type', 'Personal Services');
                break;
            case '#tagCategory4':
                filter = wixData.filter().eq('type', 'Animal Services');
                break;
            case '#tagCategory5':
                filter = wixData.filter().eq('type', 'Health, Wellness, & Human Services');
                break;
            case '#tagCategory6':
                filter = wixData.filter().eq('type', 'Business, Professional, & Financial Services');
                break;
            case '#tagCategory7':
                filter = wixData.filter().eq('type', 'Home, Auto, & Commercial Services');
                break;
        }

        // Apply the filter to the dataset
        $w('#dataset1022').setFilter(filter);
    }

    // Event listener for the search button click
    $w("#searchButton").onClick(() => {
        // Execute the search
        executeSearch();

        // Reset the search bar and highlighted tags after performing the search
        resetSearch();
    });

    // Event listener for the "Enter" key press in the search input field
    $w("#searchInput").onKeyPress((event) => {
        if (event.key === "Enter") {
            // Execute the search
            executeSearch();

            // Reset the search bar and highlighted tags after performing the search
            resetSearch();
        }
    });
});