Put window into the StateManager for it to be global