update window structure