Use fragment trick to handle land/port modes, add prefs