re-implement context menu for tree