searching and server-side pagination added