added getPreferences to user interface