add search function and pagination at search result and friends' list