arrange the layout