update question fragments according to user input