Added functionality to highlight active tab