Use PubSub in menu, remove unused objects.