fix layout of labels for documents