Better protocol handling for showing context menuitem