generating answers in DOM