logic and styling for entries display