Make back button display choice more general, basing it on history only.