set term when search page is reloading