Fix behaviour with BS3 tabs an add feature that stores last selected tab in js so if we reload the page, the last active tab remains active