use dirty event to set autosaved/unsaved changes

instead of last-saved timestamp