Added correct logic for displaying comments and attachments for a case.