centralized logic for displaying sentiment