Editing the document layout