cleanup
refactoring
fixed wrong isSaved flag after opening document
wip: renaming tab