refactored the toolbar to have DOM Storage and IndexedDB