Preserve state for new created windows