Correct hook for global search