Changed list to tree dialog