Added autosaving after insert