get layout correct for main page