changed buildTree into buidTreeState and buidTreeCity

because they have different details.