Last version with storage of history and tree of folder