update search box behavior