document state layout