Added function answerClicked to simplify query object handling