created handler to update questions when data received