Update layout of main page