loop logic for multiple choice panel and results histogram