refactoring display_questions