fix search hook name and duplicate js