Split main page out into modules.