adding session storage and services to save data when switching out tabs