fix main layout and document page