add changed status
autosave
autosavecallback
do not save if it is connecting
autosave callback
fix indentation error
autosave if the doc changed