rearrange pref screen, add logging option