search + fn pagination