Refactor index action of question.