fixing active tab issue