initial adjustment of layout