Update menu logic.