save query params for restoring on refresh