saving recent changes/preferences