adding record pagination