toggle tab manager with shortcut and change state properly when closed with ui.