change checkbox preference to switch preference

add logic to handle disable in landscape pref.