added tree var to view