fixed some styling for document handler