progress on logout, preferences, and pref_view script