move multipage layout support into separate file