add menuitem for building tree viewer