update menu on close

update menu on close