displaying documents details properly