autosave session when changing buffers