adding a preMenuCommand

adding a preMenuCommand for editing a menu name