refactored rendering certificate details