clean up session save/load a bit. fix a bug where switching tabs wouldn't switch focus to the next editor.
ui tweaks!