Add support for onecolumn mode and simplify page layout code.