change active tab highlight logic