finalized saving and loading of settings