updating folders when changed