Create main page layout accordingly