updateed the function 'answerButtons'