Fix top level folder being expanded by default
Add a feature that restores unsaved files