added templating to show results at the end of questions