recursive set id for elements + change in foldering