update window hash