Edit search function to adapt load more location when search