catch event for context menu