created event listener for answering