Properly clean up panel tab menu