update old code
trigger menu-close when menu closes