fix prefs buttons on orientation change