Working functionality of tree menus for optional layers
First version of trees in optional layers