refactor to display human-friendly kind label in detail popup