layout the doc