contextmenu event handling on sidebar panel.