begin layout settings