refactored saveTabs method
fixed saveCurrentTab method
wip: reorganization (events)