updating window