merged multiple small functions into one in HandleQuestion