new question window, refactoring