Improved way of showing/hiding active tab.