update search page logic