Update menu extension

With the new way tab-labels are implemented, we need to pull out the
tab-object when comparing what to close and what not to close