add persistent preferences using SharedPreferences
clean up