autosave functions for has_many_documents