added gestion of pagination.
implemented pagination design.
Implemented pagination logic.
Turned for server.