save query string to user on refresh