latest code that shows stored preferences.