fix search function and the scroll of search page