Added snippet for popupMenu