refactored compound detail label rendering