removed unused imports
started on pause/resume of autosave by window focus. not working yet #348