update answer fragments according to user input