Fix delete and edit of menu item