styling doc previews in upload