map { [Button => $_, -command => sub { replace($_) }] } @menu_items