change import in Preferences.js to get rid of deprecation warning