add a right click menu for item

Also we need to call `setIconVisibleInMenu(true)`, otherwise the icon would not be displayed in the menu.