attach contextmenu to tree