search on keypress and infinite scroll pagination