Support 10.7 Restore State, restore previous history when open