remember previous search location when navigating away from search results