Fixed ajax record preview, record count