added code to prevent endless loops.
now storing some info on each tab in local storage.

#ncr-6 deployed to dev