e old table, if any
        oldFrozenTableHandlerCleanup && oldFrozenTableHandlerCleanup();
        currentFrozenTable && currentFrozenTable.close();
        currentFrozenTable = table;
        frozenOffset = 0;

        oldFrozenTableHandlerCleanup = buildTable(frozenPagingTable, table);

        // load the very first page
        load(table, frozenOffset);

        return handleCleanup;
    }

    function load(table, offset) {
        table.setViewport(offset, offset + PAGE_SIZE - 1);
    }

    var PAG