Memorize tabs and restore them at deactivation. This closes #46