update menu logic