added pagination and server side search.