Windows build fix. Update the createNewPage callback to account for the new