fix contextmenu action handling