Saving duration of visit for each tab depending on category