Make ajax pagination more robust. It now always targets the correct listing.