finally got tree panels to initialize only once