clear UI onpopstate if need be
keep search box in sync with state changes too