first implementation of DisplayTree into the indexHandler"