Fixed the sequence of tabs.
Fix editor not restored on restart