edge context menu refactoring