added contextmenu support