small refactoring
show loading bar when write notes
use versionTag to write file