Implementing Contextmenus for Tree + bugfixes with tree-marking