adjust the layout for page