main page restructure