added some kind of state for the window