improved the transition from single- to multipage