changed the query to get tree members  and to display the resources title instead of label