add savePreferences and LoadSavePreFerences function