my window update not working