add doc method for layout