update search form and function