layout changes of main page