update search handler