Some Improvements for the Future Refactoring to build LayerTree Menu dynamically