main page layout restructure